﻿
@{
    ViewData["Title"] = "个人中心";
    Layout = "~/Areas/WX/Views/Shared/_Layout.cshtml";
}


@{
    var userinfo = (WalkingTec.Mvvm.Core.FrameworkUserBase)ViewBag.userinfo;
    string username = "游客";
    if (userinfo.Name != null)
    {
        username = userinfo.Name;
    }
    var mineusername = username;
}


<header class="hui-header">
    <div id="hui-back"></div>
    <h1>个人中心</h1>
</header>

<div class="hui-wrap">
    <div class="hui-list" style="margin-top:22px;">
        <a href="javascript:hui.toast('Hello Hcoder UI !');" style="height:auto; height:80px; padding-bottom:8px;">
            <div class="hui-list-icons" style="width:110px; height:80px;">
                @if (userinfo.PhotoId != null)
                {
                    <img src="/api/_file/GetFile/@userinfo.PhotoId" style="width:66px; height:66px; margin:0px; border-radius:50%;" />
                }
                else
                {
                    <img src="~/images/icon/头像.png" style="width:66px; height:66px; margin:0px; border-radius:50%;" />

                }
            </div>
            <div class="hui-list-text" style="height:79px; line-height:79px;">
                @mineusername
                <div class="hui-list-info">

                </div>
            </div>
        </a>

    </div>

    <div class="hui-list" style="margin-top:22px;">
        <a href="/WX/Account/ModifyInformation?userid=@userinfo.ID">
            <div class="hui-list-icons">
                <img src="~/images/icon/个人中心.png" />
            </div>
            <div class="hui-list-text">
                个人信息
                <div class="hui-list-info">
                    <span class="hui-icons hui-icons-right"></span>
                </div>
            </div>
        </a>
        <a onclick="restpwd()">

            <div class="hui-list-icons">
                <img src="~/images/icon/密码.png" />
            </div>
            <div class="hui-list-text">
                修改密码
                <div class="hui-list-info">
                    <span class="hui-icons hui-icons-right"></span>
                </div>
            </div>
        </a>

        <a href="/WX/Account/Logout">
            <div class="hui-list-icons">
                <img src="~/images/icon/退出.png" />
            </div>
            <div class="hui-list-text">
                退出登录
                <div class="hui-list-info">
                    <span class="hui-icons hui-icons-right"></span>
                </div>
            </div>
        </a>
    </div>

</div>

<div class="hui-fooer-line"></div>
<div id="hui-footer">
    <a href="/WX/Home/Index" id="nav-home">
        <div class="hui-footer-icons hui-icons-home"></div>
        <div class="hui-footer-text">首页</div>
    </a>
    <a href="/WX/Home/PersonalPage" id="nav-news">
        <div class="hui-footer-icons hui-icons-news"></div>
        <div class="hui-footer-text">支付</div>
    </a>
    <div style="width:20%; text-align:center;" class="hui-fl">
        <img src="~/images/jmlogo.jpg" height="44" onclick="hui.back();" />

    </div>
    <a href="/WX/Home/NoticeList" id="nav-forum">
        <div class="hui-footer-icons hui-icons-forum"></div>
        <div class="hui-footer-text">公告</div>
    </a>
    <a href="/WX/Home/PersonalPage" id="nav-my">
        <div class="hui-footer-icons hui-icons-my"></div>
        <div class="hui-footer-text">我的</div>
    </a>
</div>




@section Scripts{

    <script>
        function restpwd() {
            window.location.href = '/WX/Account/Restpwd'
        }
    </script>
}

